﻿using System;

namespace ThresholdAssistant.WebAPI.Models
{
    /// <summary>
    /// Redis缓存配置
    /// </summary>
    public sealed class RedisConstant
    {
        /// <summary>
        /// 用户Token
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        public static string UserTokenKey(string token) => $"threshold:user:{token}";

        /// <summary>
        /// accessToken
        /// </summary>
        /// <returns></returns>
        public static string AccessTokenKey => $"threshold:accesstoken";

    }
}